#ifndef ARRFACTORY_H_INCLUDED
#define ARRFACTORY_H_INCLUDED
#define MAX_NUM 10000
#include <cstdlib>
#include <ctime>
#include <iostream>

class ArrFactory
{
public:
    static void randomArr(int arr[], int *n);
    static void displayArr(int arr[], int n);
};

void ArrFactory::randomArr(int arr[], int *n)
{
    if( *n < 10 ) *n = 10;
    for(int i = 0; i< *n; i++)
        arr[i] = rand()%MAX_NUM;
}

void ArrFactory::displayArr(int arr[], int n)
{
    for (int i = 0; i< n; i++)
        std::cout << arr[i] << " ";
    std::cout << std::endl;
}

#endif // ARRFACTORY_H_INCLUDED
